﻿// See https://aka.ms/new-console-template for more information

List<int> list = new() { 2,3,1,1,1,22,31,55,667,8888,1234,32236};
for (int i = 0; i < list.Count; i++)
{
    for (int j = i;j < list.Count; j++)
    {
        if (list[i] > list[j])
        {
            var obj = list[i];
            list[i] = list[j];
            list[j] = obj;
        }
    }
}
list.ForEach(x => Console.WriteLine(x));